package com.njrsrc.android.bean;

public class AreaInfo {
	private String name;
	private String code;

	public AreaInfo(String name, String code) {
		this.name = name;
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public boolean equals(Object o) {
		if (o instanceof AreaInfo) {
			return this.code.equals(((AreaInfo)o).getCode());
		}
		return false;
	}
}
